import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(Element)
import echarts from 'echarts'

Vue.prototype.$echarts = echarts
//引入axios
import axios from 'axios'
import "./css/global.css"


Vue.prototype.$axios = axios

Vue.prototype.GetList = function () {
    console.log("全局函数...")
}

axios.interceptors.request.use(config => {
    // console.log(config)
    config.headers.Authorization="tokenItem"
    return config;//必须加
})


Vue.config.productionTip = false

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
